﻿@model Tasks.UI.Models.SellMainModel
<div class="w_1002">
    <div class="in_left">
        <div class="inleft_top">
            <img src="/images/in_left_t.png" alt="" border="0" /></div>
        <div class="inleft_zhong" style="height: 623px">
            <div class="Welcome">
                <span>上次登录：@Model.Account.LastLoginTime</span>@Config.CurrentOperator.Name，欢迎您！</div>
            <div class="finance">
                <div class="finance_bt">
                    <ul>
                        <li id="tabSell_1" class="hover3" onclick="setTab3('tabSell',1,2)"><a href="javascript:void(0)">销售助手</a></li>
                        <li id="tabSell_2" onclick="setTab3('tabSell',2,2)"><a href="javascript:void(0)">采购产品</a></li>
                    </ul>
                </div>
                <div class="finance_lr">
                    <div id="tabSell_1_news" class="financelist">
                        <ul>
                            <li><a href="javascript:void(0)" onclick="parent.showWindows('线路收客','/TourTrade/TourList',true)">
                                <img src="/images/financelistimg3.jpg" alt="" border="0" /></a>线路收客</li>
                            <li><a href="javascript:void(0)" onclick="parent.showWindows('预订酒店','/HotelTrade/HotelList',true)">
                                <img src="/images/financelistimg4.jpg" alt="" border="0" /></a>预订酒店</li>
                            <li><a href="javascript:void(0)" onclick="parent.showWindows('预订门票','/SceneryTrade/SceneryList',true)">
                                <img src="/images/financelistimg5.jpg" alt="" border="0" /></a>预订门票</li>
                            <li><a href="javascript:void(0)" onclick="parent.addTab('线路订单','/TourTrade/TourOrderManage',true)">
                                <img src="/images/financelistimg1.jpg" alt="" border="0" /></a>线路订单</li>
                            <li><a href="javascript:void(0)" onclick="parent.addTab('酒店订单','/HotelTrade/OrderManage',true)">
                                <img src="/images/financelistimg2.jpg" alt="" border="0" /></a>酒店订单</li>
                            <li><a href="javascript:void(0)" onclick="parent.addTab('门票订单','/SceneryTrade/OrderManage',true)">
                                <img src="/images/financelistimg2.jpg" alt="" border="0" /></a>门票订单</li>
                        </ul>
                        <div class="del_float">
                        </div>
                    </div>
                    <div id="tabSell_2_news" class="financelist" style="display:none;">
                        <ul>
                            <li><a href="javascript:void(0)" onclick="parent.showWindows('采购线路','/TourTrade/TourList',true)">
                                <img src="/images/financelistimg3.jpg" alt="" border="0" /></a>采购线路</li>
                            <li><a href="javascript:void(0)" onclick="parent.showWindows('采购酒店','/HotelTrade/HotelList',true)">
                                <img src="/images/financelistimg4.jpg" alt="" border="0" /></a>采购酒店</li>
                            <li><a href="javascript:void(0)" onclick="parent.showWindows('采购门票','/SceneryTrade/SceneryList',true)">
                                <img src="/images/financelistimg5.jpg" alt="" border="0" /></a>采购门票</li>
                        </ul>
                        <div class="del_float">
                        </div>
                    </div>
                </div>
            </div>
            <div class="in_fydh_out">
                <div class="financejlubt">
                    <img src="/images/jlubt.jpg" alt="" border="0" /></div>
                <div class="financejlu">
                    <table class="financejlvlist" width="711" border="0" cellspacing="0" cellpadding="0">
                        @foreach (TradeBill bill in Model.TradeBills)
                        {
                            <tr>
                                <td class="rightwuborder" width="76" height="0" bgcolor="#FFFFFF">
                                    @bill.OrderTime.ToShortDateString()
                                </td>
                                <td class="rightwuborder" width="290" height="0" bgcolor="#FFFFFF">
                                    <a href="javascript:void(0)"
                                    onclick="parent.addTab('查看订单','/Finance/ViewTradeBill?TradeBillNo=@bill.TradeBillNo',true)">@bill.ProductName</a>
                                </td>
                                <td width="93" height="0" bgcolor="#FFFFFF" style="text-align: right;">
                                    @if (bill.PayerID == Config.CompanyID)
                                    {                                    
                                        <span class="Green14bold">-@bill.Money</span>
                                    }
                                    else
                                    {
                                        <span class="red14bold">+@bill.Money</span>
                                    }
                                    元
                                </td>
                                <td width="93" height="0" bgcolor="#FFFFFF">
                                    @bill.ToState()
                                </td>
                                <td width="158" height="0" align="right" bgcolor="#FFFFFF">
                                    <a href="javascript:void(0)"
                                    onclick="parent.addTab('查看订单','/Finance/ViewTradeBill?TradeBillNo=@bill.TradeBillNo',true)">
                                        详情</a>
                                </td>
                            </tr>                       
                        }
                        <tr>
                            <td height="0" colspan="5" align="right" bgcolor="#FFFFFF">
                                <a href="javascript:void(0)" onclick="parent.addTab('交易记录','/Finance/TradeBillManage',true)">
                                    查看所有消费记录</a>
                            </td>
                        </tr>
                    </table>
                    <div class="del_float">
                    </div>
                </div>
            </div>
        </div>
        <div class="inleft_bottom">
            <img src="/images/in_left_b.png" alt="" border="0" /></div>
    </div>
    <div class="finance_right">
        <div class="finance_rightt">
            <img src="/images/in_right_top.png" alt="" border="0" /></div>
        <div class="finance_rightc">
            <div class="Moneybox">
                <div class="user">
                    账户</div>
                <div class="moneylist">
                    <ul>
                              <li>
                            @if (Model.GeneralAssetAccount.AvailableMoney < 0)
                            {
                                <span class="Green14bold">-@(Model.GeneralAssetAccount.OverdraftCreditMoney + Model.GeneralAssetAccount.FrozenCreditMoney)</span>
                               
                            }
                            else
                            {
                                <span class="red14bold">@Model.GeneralAssetAccount.AvailableMoney</span>
                            }
                            元 </li>
                        <li><span class="red14bold">@Model.GeneralAssetAccount.TotalsAvailableMoney</span>元</li>
                    </ul>
                </div>
                <div class="Recharge">
                    <ul>
                        <li><a href="#"><span>立即充值</span></a></li>
                        <li><a href="#"><span>提现</span></a></li>
                    </ul>
                    <div class="del_float">
                    </div>
                </div>
            </div>
            <div class="notice">
                <div class="in_xczc_bt">
                    <img src="/images/Notice.png" alt="" border="0" /></div>
                <div class="noticelr">
                    <ul>
                        @foreach (Article art in Model.Notices)
                        {
                            <li><a href="javascript:showModalDialog('/SystemSetting/ViewArticle?ArticleID=@art.ID')">@art.Title</a></li>
                        }
                    </ul>
                </div>
            </div>
            <div class="notice">
                <div class="in_xczc_bt">
                    <img src="/images/Problem.png" alt="" border="0" /></div>
                <div class="noticelr">
                    <ul>
                        <li><a href="#">如何提现？</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="finance_rightd">
            <img src="/images/in_right_bottom.png" alt="" border="0" /></div>
    </div>
    <div class="del_float">
    </div>
</div>
